<?php
include('mysql.php');
$pid = $_GET['pid'];
// $res = mysqli_query($link,"select list from list");
$sql = "SELECT * FROM `list` WHERE pid = $pid ";
$res = mysqli_query($link, $sql);
$arr = [];
while($row = mysqli_fetch_assoc($res)){
    $arr[] = $row;
}
echo json_encode([
    "meta"=>[
        "status"=>0,
        "msg"=>"数据获取成功"
    ],
    "data"=>$arr
]);